package com.dsjy.yf.address.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dsjy.yf.address.entity.dataobject.ExclusivezoneDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author whj
 * @version 1.0
 * @date 2021-02-05 9:20
 */
public interface ExclusivezoneMapper extends BaseMapper<ExclusivezoneDO> {
    /**
     * 查找所有类行政区划
     *
     * @return
     */
    List<ExclusivezoneDO> searchExclusivezoneAll();

    /**
     * 根据区划代码查找类行政区划
     *
     * @param parentCode
     * @return
     */
    List<ExclusivezoneDO> searchExclusivezoneWithParentCode(Integer parentCode, Boolean flag);

    /**
     * 增加类行政区划
     *
     * @param exclusivezoneDO
     * @return
     */
    Integer addExclusivezone(@Param("exclusivezoneDO") ExclusivezoneDO exclusivezoneDO);


    /**
     * 更新修改
     *
     * @param exclusivezoneDO
     * @return
     */
    Integer updExclusivezone(@Param("exclusivezoneDO") ExclusivezoneDO exclusivezoneDO);
}
